package com.koron.order.experiment.mapper;

import com.koron.order.experiment.bean.po.ExperimentPo;
import com.koron.order.experiment.bean.query.ExperimentQuery;
import com.koron.order.experiment.bean.vo.ExperimentVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * (Experiment)表数据库访问层
 *
 * @author zhouj
 * @since 2021-10-08 16:25:03
 */
public interface ExperimentMapper {

    int insertOrUpdate(ExperimentPo experiment);

    int insertOrUpdateBatch(List<ExperimentPo> experiment);

    int insert(ExperimentPo experiment);

    int insertBatch(@Param("list") List<ExperimentPo> experiments);

    int update(ExperimentPo experiment);

    int deleteById(String id);

    ExperimentPo queryById(String id);

    List<ExperimentVo> queryList(ExperimentQuery query);

    int submitExperiment(@Param("orderId") String orderId, @Param("status") String status);

    List<String> getAllChildrenEquipmentIds(@Param("equipmentIds") List<String> equipmentIds);

    List<Map<String,Object>> getAllEquipmentids();
}